/*
 * Copyright 2010 Marcin Blazejewski
 *
 * This file is part of Nofate.
 *
 * Nofate is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Nofate is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Nofate. If not, see <http://www.gnu.org/licenses/>.
 *
 */


#ifndef TYPEBASE_H_
#define TYPEBASE_H_

typedef struct {
    char ch;
    int  fg;
    char alpha;
    char type;
} BP_basic;

int             tb_init();
class Thing*    tb_spawn(const char *id, int ter_bg=-1);
void            tb_clean();



void mk_hsv_range(unsigned int *v, unsigned int size, 
                  unsigned short h0, unsigned short h1,
                  unsigned char s0, unsigned char s1,
                  unsigned char v0, unsigned char v1,
                  bool hsv_format=false);

#endif

